/**
 * OrganizationOrganization.java
 * 
 * Created Date: 2014骞�1鏈�4鏃� *
 * Copyright (c) Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 * Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */
package com.centling.bluecollar.customer.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.centling.bluecollar.privilege.entity.OrganizationType;
import com.centling.bluecollar.system.entity.CompanyAccount;

/**
 * @author hellsing
 *
 */
@Entity
@Table(name = "t_organization")
//组织区域表
public class Organization {
	
	private String id;
	private String organizationName;
	private List<SchoolCustomer> schoolCustoms;
	private List<ProxyClient> proxyClients;
	private OrganizationType organizationType;
	private String status;
	private String remark;
	private String adminAccount;
	private List<CompanyAccount> companyAccount;
	
	
	
	/**
	 * @return the companyAccount
	 */
	@Transient
	public List<CompanyAccount> getCompanyAccount() {
	
		return companyAccount;
	}


	
	/**
	 * @param companyAccount the companyAccount to set
	 */
	public void setCompanyAccount(List<CompanyAccount> companyAccount) {
	
		this.companyAccount = companyAccount;
	}


	/**
	 * @return the adminAccount
	 */
	@Transient
	public String getAdminAccount() {
	
		return adminAccount;
	}

	
	/**
	 * @param adminAccount the adminAccount to set
	 */
	public void setAdminAccount(String adminAccount) {
	
		this.adminAccount = adminAccount;
	}

	/**
	 * @return the proxyClients
	 */
	@Transient
	public List<ProxyClient> getProxyClients() {
	
		return proxyClients;
	}
	
	/**
	 * @param proxyClients
	 *            the proxyClients to set
	 */
	public void setProxyClients(List<ProxyClient> proxyClients) {
	
		this.proxyClients = proxyClients;
	}
	
	/**
	 * @return the schoolCustoms
	 */
	@Transient
	public List<SchoolCustomer> getSchoolCustoms() {
	
		return schoolCustoms;
	}
	
	/**
	 * @param schoolCustoms
	 *            the schoolCustoms to set
	 */
	public void setSchoolCustoms(List<SchoolCustomer> schoolCustoms) {
	
		this.schoolCustoms = schoolCustoms;
	}
	
	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}
	
	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}
	
	/**
	 * @return the organizationName
	 */
	@Column(length = 40)
	public String getOrganizationName() {
	
		return organizationName;
	}
	
	/**
	 * @param organizationName
	 *            the organizationName to set
	 */
	public void setOrganizationName(String organizationName) {
	
		this.organizationName = organizationName;
	}
	
	/**
	 * @return the organizationType
	 */
	@ManyToOne
	@JoinColumn(name="organizationTypeId")
	public OrganizationType getOrganizationType() {
	
		return organizationType;
	}

	/**
	 * @param organizationType the organizationType to set
	 */
	public void setOrganizationType(OrganizationType organizationType) {
	
		this.organizationType = organizationType;
	}

	/**
	 * @return the status
	 */
	@Column(length=40)
	public String getStatus() {
	
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
	
		this.status = status;
	}

	/**
	 * @return the remark
	 */
	@Column(length=50)
	public String getRemark() {
	
		return remark;
	}

	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
	
		this.remark = remark;
	}
}
